package cn.amos.mvc.webservice;

import javax.jws.WebMethod;
import javax.jws.WebParam;

/**
 * PROJECT: mvc
 * DESCRIPTION: HelloService接口实现
 *
 * @author amos.wang
 * @date 2019/4/9
 */
public class HelloWSDemoImpl implements HelloWSDemo {

    @Override
    public String sayHello(@WebParam(name = "name") String name) {
        if (name != null && name.length() > 3) {
            return "Hi " + name;
        }
        return "Hello " + name;
    }

    @Override
    @WebMethod(exclude = true)
    public String helloVisitor() {
        return "Hello Visitor!";
    }

}
